import { $hotel_get,$hotel_post,$travel_get,$travel_post } from "../utils/request.ts";

import { ElNotification } from 'element-plus'
export const $travelName = async() =>{
        try {
        const data = await $travel_get('travel/findName'); // 假设接口地址是 /api/hotelPlatforms
            
        return data;
    } catch (error) {
        console.error('请求失败:', error);
        ElNotification({
            title: '通知',
            message: '服务器异常，请联系管理员！',
            type: 'error',
        });
        return false;  // 发生错误时返回登录失败
    }
}